package com.zyjc.city.httpclient;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.zyjc.city.model.dto.AreaPersonDto;
import com.zyjc.city.model.Result;
import com.zyjc.city.model.dto.TokenDto;
import com.zyjc.city.model.params.AreaPersonIn;

/**
 * 获取数据类
 * @author ckj
 * @date 2024年03月29日 16:14
 */
@BaseRequest(baseURL = "${baseUrl}")
public interface DataClient {
    /**
     * 获取token
     * @author ckj
     * @date 2024/3/29 16:32
     */
    @Post("openplat-sys-core/api/interface/sys/channelinterface/createtoken")
    Result<TokenDto> getToken(String channelCode);

    /**
     * 获取实时人数和游客数
     * @author ckj
     * @date 2024/3/29 16:54
     */
    @Post("interfacerdgfserver/itrip/service/api/v2/getRealtimeCount")
    Result<AreaPersonDto> getRegionData(@JSONBody AreaPersonIn regionIn);


}
